// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Components/PostProcessComponent.h"
#include "GameFramework/Actor.h"
#include "MotionSubtitlesCanvas.generated.h"

UCLASS()
class MOTIONSUBTITLES_API AMotionSubtitlesCanvas : public AActor
{
	GENERATED_BODY()

protected:
	UPROPERTY(VisibleAnywhere,BlueprintReadWrite,Category=MotionSubtitles)
	TObjectPtr<UPostProcessComponent> PostProcessComponent;

	TMap<FGuid,TWeakObjectPtr<UMaterialInstanceDynamic>> Mappings;

public:

	AMotionSubtitlesCanvas();

public:
	void Add(const FGuid Id,TWeakObjectPtr<UMaterialInstanceDynamic> Material);
	void Remove(const FGuid Id);
};
